#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int* printNumbers(int n, int* returnSize)
{
    int num = 1;

    for (int i = 0; i < n; i++)
    {
        num = num * 10;
    }

    *returnSize = num - 1;

    int* arr = (int*)malloc(sizeof(int) * (num - 1));

    for (int i = 0; i < num - 1; i++)
    {
        arr[i] = i + 1;
    }
    return arr;
}

int main()
{
    return 0;
}